﻿using System;

namespace DataConvertLib
{
	/// <summary>
	/// 带一个数据的操作结果类
	/// </summary>
	/// <typeparam name="T">类型</typeparam>
	// Token: 0x0200000F RID: 15
	public class OperateResult<T> : OperateResult
	{
		/// <summary>
		/// 构造方法
		/// </summary>
		// Token: 0x06000086 RID: 134 RVA: 0x00005007 File Offset: 0x00003207
		public OperateResult()
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="isSuccess">操作是否成功</param>
		// Token: 0x06000087 RID: 135 RVA: 0x00005011 File Offset: 0x00003211
		public OperateResult(bool isSuccess) : base(isSuccess)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="message">错误信息</param>
		// Token: 0x06000088 RID: 136 RVA: 0x0000501C File Offset: 0x0000321C
		public OperateResult(string message) : base(message)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="errorCode">错误代码</param>
		/// <param name="message">错误信息</param>
		// Token: 0x06000089 RID: 137 RVA: 0x00005027 File Offset: 0x00003227
		public OperateResult(int errorCode, string message) : base(errorCode, message)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="isSuccess">是否成功</param>
		/// <param name="errorCode">错误代码</param>
		/// <param name="message">错误信息</param>
		// Token: 0x0600008A RID: 138 RVA: 0x00005033 File Offset: 0x00003233
		public OperateResult(bool isSuccess, int errorCode, string message) : base(isSuccess, errorCode, message)
		{
		}

		/// <summary>
		/// 构造方法
		/// </summary>
		/// <param name="isSuccess">是否成功</param>
		/// <param name="errorCode">错误代码</param>
		/// <param name="message">错误信息</param>
		/// <param name="content">数据</param>
		// Token: 0x0600008B RID: 139 RVA: 0x00005040 File Offset: 0x00003240
		public OperateResult(bool isSuccess, int errorCode, string message, T content) : base(isSuccess, errorCode, message)
		{
			this.Content = content;
		}

		/// <summary>
		///  数据
		/// </summary>
		// Token: 0x17000007 RID: 7
		// (get) Token: 0x0600008C RID: 140 RVA: 0x00005056 File Offset: 0x00003256
		// (set) Token: 0x0600008D RID: 141 RVA: 0x0000505E File Offset: 0x0000325E
		public T Content { get; set; }
	}
}
